{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div>
  </div>
  <div class="panel-body" id="contents">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in">
        <div class="widget-body no-padding">
          <div class="bootstrap-table">
            <div class="fixed-table-toolbar">
              <div class="columns-right pull-right" style="margin-top:10px;">
                <form class="form-inline form-commonsearch nice-validator n-default" method="post" action="">
                  <input class="form-control" placeholder="搜索" type="text" name="wd">
                  <button type="submit" class="btn btn-default ajax-posturl"  title="普通搜索"  target-form="form-commonsearch"><i class="glyphicon glyphicon-search"></i></button>
                </form>
              </div>           
              <div class="pull-right search">
                <select name="status" class="form-control" type="get-select" style="margin:0 0 0 10px;">
                  <option value="{:url('admin/wechat/autoreply')}">状态</option>
                  <option value="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>1,'type'=>$type,'order'=>$order))}" {eq name="status" value="1"}selected{/eq}>
                  显示
                  </option>
                  <option value="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>2,'type'=>$type,'order'=>$order))}" {eq name="status" value="2"}selected{/eq}>
                  隐藏
                  </option>
                </select>
              </div>
              <div class="bs-bars pull-left">
                <div id="toolbar" class="toolbar"><a href="{:url('admin/wechat/autoreply')}" class="btn btn-primary ajax-url"><i class="fa fa-refresh"></i> </a> <a href="javascript:;" data-name="添加自动回复" data-url="{:url('admin/wechat.autoreply/add')}" class="btn btn-success btn-add btn-editone" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-plus"></i> 添加</a> <a  url="{:url('admin/wechat.autoreply/status',array('status'=>1))}" target-form="ids" class="confirm btn btn-info btn-disabled ajax-post disabled"><i class="fa fa-unlock"></i> 启用</a> <a  url="{:url('admin/wechat.autoreply/status',array('status'=>0))}" target-form="ids" class="confirm btn btn-warning btn-disabled ajax-post disabled"><i class="fa fa-lock"></i> 禁用</a> <a  url="{:url('admin/wechat.autoreply/del')}" target-form="ids" class="confirm btn btn-danger btn-del btn-disabled ajax-post disabled"><i class="fa fa-trash"></i> 删除</a> <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span> </div>
              </div>
            </div>
          </div>
          <div class="fixed-table-container" style="padding-bottom: 0px;">
            <div class="fixed-table-body">
              <form class="ids">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                  <thead>
                    <tr style="height:45px;">
                      <th class="bs-checkbox "><input name="btSelectAll" type="checkbox"></th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="auto_id desc"}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_id','order'=>'asc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_id','order'=>'desc'))}" class="btn-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">回复标题</th>
                      <th style="text-align:center;vertical-align: middle;">回复内容</th>
                      <th style="text-align:center;vertical-align: middle;">响应名称</th>
                      <th style="text-align:center;vertical-align: middle;">响应标识</th>
                      <th style="text-align:center;vertical-align: middle;">事件备注</th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="auto_addtime desc"}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_addtime','order'=>'asc'))}" class="btn-link sort ajax-url">创建时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_addtime','order'=>'desc'))}" class="btn-link sort ajax-url">创建时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">{eq name="orders" value="auto_uptime desc"}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_uptime','order'=>'asc'))}" class="btn-link sort ajax-url">更新时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('admin/wechat.autoreply/index',array('wd'=>$wd,'status'=>$status,'type'=>'auto_uptime','order'=>'desc'))}" class="btn-link sort ajax-url">更新时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;">开启状态</th>
                      <th style="text-align:center;vertical-align: middle;">相关操作</th>
                    </tr>
                  </thead>
            </tr>
            <tbody>
                  {notempty name="list"}
                  {volist name="list" id="vo"}
                <tr style="height:45px;">
                <td class="bs-checkbox"><input data-index="{$vo['auto_id']}" name="id[]" type="checkbox"  value="{$vo['auto_id']}"></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_id}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_title}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_text}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.response_title}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_eventkey}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_remark}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_addtime|date='Y-m-d H:i:s',###}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.auto_uptime|date='Y-m-d H:i:s',###}</td>
                <td style="text-align:center;vertical-align: middle;">{eq name="vo.auto_status" value="1"}
				<a href="{:url('admin/wechat.autoreply/status',array('id'=> $vo['auto_id'],'status'=>0))}" class="btn btn-info btn-xs btn-success ajax-get">启用</a>{else/}<a href="{:url('admin/wechat.autoreply/status',array('id'=> $vo['auto_id'],'status'=>1))}" class="btn btn-info btn-xs btn-danger ajax-get">禁用</a>{/eq} </td>
               <td style="text-align:center;vertical-align: middle;"><a href="javascript:;" data-name="编辑微信回复" data-url="{:url('admin/wechat.autoreply/edit',array('id'=>$vo['auto_id']))}" class="btn btn-success btn-editone btn-xs" data-width="100%" data-height="100%" data-offset="0px"><i class="fa fa-pencil"></i> 编辑</a> <a url="{:url('admin/wechat.autoreply/del',array('id'=>$vo['auto_id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a></td>
              </tr>
 {/volist}   
                  {else/}
                  <tr>
                    <td style="text-align:center;vertical-align: middle;" colspan="8" >抱歉，没有找到相关内容！</td>
                  </tr>
                  {/notempty}
                  </tbody>
                </table>
  </form>
</div></div></div></div><div class="clearfix"></div>
                </div>
            </div>
        </div>
        </div>
    </div>
</div>              